<?php if(isset($calendar_info['items'])) : ?>

	<?php foreach($calendar_info['items'] as $item) : ?>
		<?php echo $item; ?>
	<?php endforeach; ?>

<?php endif; ?>
<h3><?=date("l F j, Y",strtotime($event->start))?></h3><br />
<?$a = (strtotime("$event->end") - strtotime("$event->start"))/(60*60*24);?>
<? if($a<1 && $a>0):?>
Event: <?= $event->name?> @ <?=date("g:i a",strtotime($event->start))?> until <?=date("g:i a",strtotime($event->end))?>
<? elseif($a==0) : ?>
Event: <?= $event->name?> - an all day event
<? else :?>
Event: <?= $event->name?> @ <?=date("g:i a",strtotime($event->start))?> on <?=date("l",strtotime($event->start))?> until <?=date("g:i a",strtotime($event->end))?>  on <?=date("l",strtotime($event->end))?>
<? endif ?>
<p>Place: <?=$event->building;?>; <? if($event->geocode!=""): ?> <a href="<?=site_url("calendar/map/$event->geocode/$event->geocode2/")?>" title="Map of Event" class="thickbox" id="map"> <? endif; ?>
	<?= ($event->street!="") ? "$event->street; " : "" ?>
	<?= ($event->city!="") ? (strtolower($event->city)!="raleigh") ?  "$event->city," : "$event->city" : "" ?>
	<?= ($event->state!="" && strtolower($event->city)!="raleigh") ? "$event->state" : ""?><? if($event->geocode!=""): ?> </a> <? endif; ?>
</p>
<p>Details</p>
<p style="margin:1em 0 0 1em"><?= $event->description?></p>
<? if($invited) : ?>
<p><?= $con_user->display?> you are currently <?=$status?></p>
<? endif ?>
<li style="margin-top:1em"><?=anchor("calendar/eventDetails/$event->id", 'full details');?></li>
